home *** CD-ROM | disk | FTP | other *** search
/ The Net Power 1997 April / NETDisc0497.iso / mac / Demos / Living Books Sampler / SETUP32 / SETUP.H < prev    next >
Text File  |  1996-08-08  |  5KB  |  129 lines

  1. //***********************************************************************
  2. //
  3. //               Br°derbund 32-Bit Generic Product Installer
  4. //
  5. //                                HEADER FILE
  6. //
  7. //     This header contains keys for references in "setup.INI".  This
  8. //     information is shared by the install script, the autoplay
  9. //     "launcher", and is available for READ ONLY use by any appli-
  10. //     cation that may need to construct a key to query information
  11. //     in the registry.
  12. //
  13. //     As an example, information relating to the installed app. may
  14. //     be stored in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\
  15. //     Company\Product\Version, with the "Company", "Product" and
  16. //     "Version" components of the registry key replaced by actual
  17. //     values of those references in "Setup.INI".
  18. //
  19. //
  20. //                               IMPORTANT !!
  21. //
  22. //     Developers for a particular application should NOT assume that
  23. //     they may freely add items to this file, as this may conflict
  24. //     with references required by future features of the install
  25. //     script or autorun launcher.
  26. //
  27. //
  28. //                                                  -Andy L.
  29. //                                              Sapien Technologies
  30. //                                                   10/25/95
  31. //
  32. //
  33. //***********************************************************************
  34.  
  35.  
  36. #ifndef __SETUP_H__
  37.  
  38.     #define __SETUP_H__ TRUE  // InstallShield requires that
  39.                               // #define assignment be explicit
  40.     
  41.  
  42.     // General Info
  43.     #define INIFILE               "Setup.INI"
  44.     #define INI_FROMFLAG          "$Install_FromDrive$"
  45.     #define INI_TOFLAG            "$Install_ToDirectory$"
  46.     #define INI_TESTDIRFLAG       "$SetupEXE_AutorunEXE_Directory$"
  47.     #define CMDLINE_ARGMARKER     "/"
  48.  
  49.  
  50.     // Section Headings
  51.     #define INISECTION_GENERAL       "General Info"
  52.     #define INISECTION_STARTMENU     "Start Menu Items"
  53.     #define INISECTION_LAUNCHER      "Launcher Items"
  54.     #define INISECTION_3RDPARTYEXES     "Third Party Executables"
  55.     #define INISECTION_DOCTYPES      "Associations"
  56.  
  57.  
  58.     // Registry Key Components
  59.     #define INIKEY_CONAME       "Company"
  60.     #define INIKEY_PRODTITLE    "ProductTitle"
  61.     #define INIKEY_PRODVERSION  "ProductVersion"
  62.     #define INIKEY_EXEFILE      "ExecutableFile"
  63.     #define REGKEY_PATHINFO     "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\"
  64.     #define REGKEY_GENLINFO     "SOFTWARE\\"
  65.     #define REGKEY_DOCINFO      "SOFTWARE\\Classes\\"
  66.     #define REGKEY_DOC_OPENEXE  "shell\\open\\command"
  67.     #define REGKEY_DOC_ICON     "DefaultIcon"
  68.     #define REG_DIALOGDISABLE   "Disable Autorun Dialog (Y/N)?"
  69.  
  70.  
  71.     //********* [ .INI file entry keys  ] *********
  72.  
  73.     // Start Menu Items
  74.     #define INIKEY_FOLDER              "Folder"
  75.     #define INIKEY_ITEMPREFIX          "Item"
  76.     #define INIKEY_ITEMSUFFIX_CAPTION  "_Caption"
  77.     #define INIKEY_ITEMSUFFIX_CMDLINE  "_CmdLine"
  78.     #define INIKEY_ITEMSUFFIX_WRKDIR   "_WrkDir"
  79.     
  80.     // Third-Party executables
  81.     #define INIKEY_ITEMSUFFIX_3RDPARTYDESC   "_Description" 
  82.     #define INIKEY_ITEMSUFFIX_3RDPARTYEXE    "_Executable"
  83.  
  84.     // Document Types ( Default Icon and File Extension )
  85.     #define INIKEY_ITEMSUFFIX_DOCEXTENSION    "_FileExtension"
  86.     #define INIKEY_ITEMSUFFIX_DOCTYPE         "_FileType"
  87.     #define INIKEY_ITEMSUFFIX_DOCDESCRIPTION  "_TypeDescription"    
  88.     #define INIKEY_ITEMSUFFIX_DOCEXECUTABLE   "_AssocExecutable" 
  89.     #define INIKEY_ITEMSUFFIX_DOCICON         "_DefaultIcon"
  90.  
  91.     
  92.     // Configuration File Items
  93.     // (installer and launcher must edit/create items in a .CFG file)
  94.     #define CFG_EXTENSION       ".cfg"
  95.     #define CFGSECTION_INSTALL  "install"
  96.     #define CFGSECTION_DIRS     "directories"
  97.     #define CFGKEY_SOURCEDIR    "InstallFromDir"
  98.     #define CFGKEY_TARGETDIR    "InstallToDir"
  99.     #define CFGKEY_SOURCEDRIVE  "InstallFromDrive"
  100.     #define CFGKEY_TARGETDRIVE  "InstallToDrive"
  101.  
  102.     
  103.     // Other Miscellaneous
  104.     #define INIKEY_SPACEREQD     "DiskSpaceReqd_KB"
  105.     #define INIKEY_DLGBITMAP     "DialogBitmap"
  106.     #define INIKEY_BKGRNDBITMAP  "BackgroundBitmap"
  107.     #define INIKEY_256COLORS     "Allow_256Colors"
  108.     
  109.     #define INIKEY_SOURCEDIR     "XferFiles_Source"
  110.     #define INIKEY_TARGETDIR     "XferFiles_Destination"
  111.  
  112.     #define INIKEY_OTHEREXE_MIDI  "MIDI_Installer"
  113.     #define INIKEY_OTHEREXE_QTFW  "QuickTime_Installer"
  114.     #define INIKEY_ONLINEREG      "On-line Registration"
  115.     #define INIKEY_REBOOT         "Reboot_System"
  116.     
  117.     #define INIKEY_COPYRIGHT      "Copyright Blurb"
  118.     
  119.     // Launcher-Specific
  120.     #define INIKEY_REGISTRYKEY            "registrykey"
  121.     #define INIKEY_LAUNCHER_BITMAP        "bitmap"
  122.     #define INIKEY_LAUNCHER_VERTBUTTONS   "vertical_buttons"    
  123.     #define INIKEY_LAUNCHER_BITMAPOFFSET  "bitmap_offset"
  124.     #define INIKEY_LAUNCHER_APPWORKINGDIR "ExecutableWorkingDir"
  125.  
  126.  
  127.  
  128. #endif  // __SETUP_H__
  129.